:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --text-primary: #ffffff;
  --text-secondary: #888888;
  --accent: #00ff88;
  --accent-dark: #00cc6a;
  --grid-color: rgba(255, 255, 255, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  background: linear-gradient(45deg, rgba(0,0,0,0.9), rgba(0,0,0,0.7));
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px),
    linear-gradient(var(--grid-color) 1px, transparent 1px);
  background-size: 30px 30px;
  transform: perspective(500px) rotateX(60deg);
  transform-origin: top;
  animation: grid 20s linear infinite;
}

@keyframes grid {
  0% {
    transform: perspective(500px) rotateX(60deg) translateY(0);
  }
  100% {
    transform: perspective(500px) rotateX(60deg) translateY(30px);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.glitch-title {
  font-size: 5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  color: var(--text-primary);
  text-shadow: 
    2px 2px var(--accent),
    -2px -2px #ff0055;
  animation: glitch 3s infinite;
}

@keyframes glitch {
  0% {
    text-shadow: 2px 2px var(--accent), -2px -2px #ff0055;
  }
  25% {
    text-shadow: -2px 2px var(--accent), 2px -2px #ff0055;
  }
  50% {
    text-shadow: 2px -2px var(--accent), -2px 2px #ff0055;
  }
  75% {
    text-shadow: -2px -2px var(--accent), 2px 2px #ff0055;
  }
  100% {
    text-shadow: 2px 2px var(--accent), -2px -2px #ff0055;
  }
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--accent);
  color: var(--bg-primary);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--accent);
}

.cta-button:hover {
  background: transparent;
  color: var(--accent);
}

/* Features Section */
.features {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--grid-color);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* Categories Section */
.categories {
  padding: 6rem 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.category-card {
  position: relative;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, var(--accent));
  opacity: 0;
  transition: all 0.3s ease;
}

.category-card:hover::before {
  opacity: 0.1;
}

.category-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 8px var(--accent));
}

/* Stats Section */
.stats {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  padding: 2rem 0;
  text-align: center;
  background: var(--bg-primary);
  border-top: 1px solid var(--grid-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .glitch-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .features-grid,
  .category-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.floating {
  animation: float 3s ease-in-out infinite;
}
